package com.frogs.ucenter.v1.request;

import javax.servlet.http.HttpServletRequest;

import com.frogs.framework.util.StringUtil;
import com.frogs.framework.web.HttpRequestInfo;
import com.frogs.system.util.ApiUrlParamEnum;
import com.frogs.system.web.api.request.Request;
import com.frogs.system.web.exception.RequestIllegalException;

/**
 *  药物列表请求类 
 *
 * @author hongyuhao
 * @version 2014年5月27日 - 上午10:26:31
 */
public class UserDrugPartialListRequest extends Request {

	private static final long serialVersionUID = 5877335500185379557L;
	
	private String ids;
	
	@Override
	public void parse(HttpServletRequest request) {
		
		HttpRequestInfo requestInfo = new HttpRequestInfo(request);
		
		
		ids = requestInfo.getParameter(ApiUrlParamEnum.ids.getParamName(), "");
		if(StringUtil.isEmpty(ids)) {
			throw new RequestIllegalException("缺少需要的值，ids=" + ids);
		}
	}
	
	public void setIds(String ids) {
		this.ids = ids;
	}
	
	public String getIds() {
		return ids;
	}
	
}
